package d0312;


public class Person {
    private String name;
    private String address;
    private String sex;
    private int age;
    public Person() {}
    public Person(String name,String address,String sex,int age) {
        this.name = name;
        this.address = address;
        this.sex = sex;
        this.age = age;
    }
    public void show() {
        System.out.println(this.name);
        System.out.println(this.address);
        System.out.println(this.sex);
        System.out.println(this.age);
    }
}
class Student extends Person{
    public int math;
    public int english;
    public Student(){}
    public Student(int math,int english) {
        this.math = math;
        this.english = english;
    }
    public Student(String name, String address, String sex, int age, int math, int english) {
        super(name, address, sex, age);
        this.math = math;
        this.english = english;
    }
    public void show() {
        super.show();
        System.out.println(this.math);
        System.out.println(this.english);
    }
    public static void main(String[] args) {
        Student student =
                new Student("李四","吉林省","男",18,100,100);
        student.show();
    }
}
